home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2002 March
/
PCWorld_2002-03_cd.bin
/
Software
/
TemaCD
/
xteq
/
setup.exe
/
{app}
/
plugins
/
XQ Logoff Pictures.xpl
< prev
next >
Wrap
Text File
|
2001-01-21
|
2KB
|
79 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="3"
"COUNT"="2"
"UIPATH 1"="Startup/Shutdown\Shutdown\Windows 9x/ME\30) Power Off"
"NAME"="Windows 9x/ME Logoff Pictures"
"VERSION"="1.47"
"OSVERSION"="10101"
"LANGUAGE"="VBScript"
"TEXT 1"="Picture 1"
"TEXT 2"="Picture 2"
"DATA 1"="Bitmap picturs (*.BMP)|*.bmp"
"DATA 2"="Bitmap picturs (*.BMP)|*.bmp"
"DESCRIPTION 1"="This plug-in can be used to change the pictures that are displayed when logging off from Windows."
"DESCRIPTION 2"=""Picture 1" is displayed while the computer is shut down (Please wait while...)."
"DESCRIPTION 3"=""Picture 2" is displayed when the computer can be turned off (It's safe now to...)."
"DESCRIPTION 4"="NOTE #1: Both pictures should be 320x400 pixels with 256 colors."
"DESCRIPTION 5"="NOTE #2: Both settings are for Windows 9x or Windows Me."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
"COMMENT 2"="Thanks to John [hartjenj@earthlink.net] for the bug report!"
Sub Plugin_Initialize
'SetUIElement 1,GetWinDir
'SetUIElement 2,GetWinDir
SetUIElement 1,"C:\"
SetUIElement 2,"C:\"
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
s=GetUIElement(1)
if len(s)>3 then
Call DoWork("LOGOW.SYS","LOGOW.XSB",s)
Call Restart
end if
s=GetUIElement(2)
if len(s)>3 then
Call DoWork("LOGOS.SYS","LOGOS.XSB",s)
Call Restart
end if
Call MsgInformation("The new logo has been set.")
End Sub
Sub Plugin_Terminate
End Sub
Sub DoWork(File1,BackupFile,NewFile)
s1=GetWinDir & File1
s2=GetWinDir & BackupFile
s3=NewFile
'if backup exists, delete it
if FileExists(s2) then
Call FileSetAttribute(s2,"S-")
Call FileSetAttribute(s2,"R-")
Call FileSetAttribute(s2,"H-")
Call FileDelete(s2)
end if
'make backup of current file
if FileExists(s1) then
Call FileSetAttribute(s2,"S-")
Call FileSetAttribute(s2,"R-")
Call FileSetAttribute(s2,"H-")
Call FileCopy(s1,s2)
Call FileDelete(s1)
end if
'now copy new file to old file
Call FileCopy(s3,s1)
End Sub